/*@(#)GSBaseConstants.java 
 * 
 * Project: BUS 
 * 
 * Modify Information:
 * =========================================================================
 * 
 * Author       Date          Description 
 * ==========   ==========   =================================================== 
 * Jenny Li     2006-02-07    新增
 * 
 * Copyright Notice: Copyright (c) 2001-2005 Beijing HiTRUST Technology Co.,
 * Ltd. 1808 Room, Science & Technology Building, No. 9 South Street, Zhong Guan
 * Cun, Haidian District, Beijing ,100081, China All rights reserved.
 * 
 * This software is the confidential and proprietary information of HiTRUST.COM,
 * Inc. ('Confidential Information'). You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with HiTRUST.
 * 
 * Warning:
 * =========================================================================
 */
package com.hitrust.gs.lib;

public class GSBaseConstants {
    /** 正式产品*/
    public static final String IS_NORMAL = "1";

    /** 非正式产品*/
    public static final String NOT_NORMAL = "0";
    
    /**
     * 记录已更新
     * */
    public static final String IS_UPDATE="1";
    /**
     * 记录未更新
     * */
    public static final String NO_UPDATE="0";
    /**
     * 成功导向
     */
    public static String FORWARD_SUCCESS         = "success";

    /**
     * 错误导向
     */
    public static String FORWARD_ERROR           = "error";

    /**
     * 异常导向
     */
    public static String FORWARD_EXCEPTION       = "exception";

    /**
     * 失败导向
     */
    public static String FORWARD_FAILURE         = "failure";

    /**
     * 密码修改导向
     */
    public static String FORWARD_UPDATE_PASSWORD = "updatepwd";
    
    /**
     * 新建批次订单导向
     */
    public static String FORWARD_CREAT_NEW_BATCH_ORDER = "crtnewbatchorder";    

    /**
     * 登陆用户标识
     */
    public static String LOGIN                   = "LoginContext";

    /**
     * 新增操作类型
     */
    public static String OPTTYPE_ADD             = "1";

    /**
     * 删除操作类型
     */
    public static String OPTTYPE_DEL             = "3";

    /**
     * 修改操作类型
     */
    public static String OPTTYPE_MOD             = "2";

    /**
     * 维护操作类型
     */
    public static String OPTTYPE_MAINT           = "4";

    /**
     * 待复核状态
     */
    public static String STATUS_FOR_CHECK        = "1";

    /**
     * 已复核/待生效状态
     */
    public static String STATUS_CHECKED          = "2";

    /**
     * 已生效状态
     */
    public static String STATUS_EFFECTED         = "3";

    /**
     * 生效成功
     */
    public static String EFFECT_SUCCESS          = "1";

    /**
     * 生效失败
     */
    public static String EFFECT_FAILED           = "0";

    /**
     * 回退成功
     */
    public static String BACK_SUCCESS            = "1";

    /**
     * 回退失败
     */
    public static String BACK_FAILED             = "0";

    /**
     * 
     */
    public static String SYSID                   = "008";

    /**
     * 系统上传产品图片文件目录
     */
    public static String UPLOAD_PATH = "C:/upload/manufacture";

    /**
     * 订单编号长度
     */
    public static int ORDER_ID_LENGTH = 11;
    /**
     * 申请
     */
    public static String ORDER_APPLY = "1";
    /**
     * 初审通过
     */
    public static String ORDER_FIRSTAUDIT_PASS = "2";
    /**
     * 复审通过
     */
    public static String ORDER_SECONDAUDIT_PASS = "3";
    /**
     * 初审未通过
     */
    public static String ORDER_FIRSTAUDIT_FAILURE = "4";
    /**
     * 复审未通过
     */
    public static String ORDER_SECONDAUDIT_FAILURE = "5";
    /**
     * 提交
     */
    public static String ORDER_SUBMIT = "6";
    /**
     * 核准
     */
    public static String ORDER_AUTHORISE = "7";
    /**
     * 未核准
     */
    public static String ORDER_AUTHORISE_FAILURE = "8";
    /**
     * 订货中
     */
    public static String ORDER_ORDERING = "9";
    /**
     * 已确认（订单确认,送货确认）
     */
    public static String ORDER_ORDER_CONFIRM = "10";
    /**
     * 已拒绝（订单拒绝，送货拒绝）
     */
    public static String ORDER_ORDER_REJECT = "11";
    /**
     * 交货确认
     */
    public static String ORDER_DELIVERY_CONFIRM = "12";
    /**
     * 收款确认
     */
    public static String ORDER_GATHERING_CONFIRM = "13";
    /**
     * 完成
     */
    public static String ORDER_FINISH = "14";
    /**
     * 补单
     */
    public static String ORDER_FILL_ORDER = "18";
    /**
     * 补单确认
     */
    public static String ORDER_FILL_ORDER_CONFIRM = "19";
    /**
     * 退货
     */
    public static String ORDER_WITHDRAW_GOODS = "20";
    /**
     * 取消
     */
    public static String ORDER_CANCEL = "21";
    /**
     * 作废
     */
    public static String ORDER_BLANK_OUT = "22";
    
    
    //申请取消
    public static String ORDER_APPLAY_CANCEL = "50";
    
    /**
     * 退货申请
     */
    public static String ORDER_REFUND_APPLITION = "51";
    /**
     * 退货拒绝
     */
    public static String PRDER_REFUND_REFUSE = "52";
    
    /**
     * 订单明细订货中
     */
    public static String ORDER_DETAIL_ORDERING = "1";
    /**
     * 订单明细送货确认
     */
    public static String ORDER_DETAIL_DELIVER_GOODS_CONFIRM = "2";
    /**
     * 订单送货拒绝
     */
    public static String ORDER_DETAIL_DELIVER_GOODS_REJECT = "3";
    /**
     * 订单交货确认
     */
    public static String ORDER_DETAIL_CONSIGNMENT_GOODS_CONFIRM = "4";
    /**
     * 订单收款确认
     */
    public static String ORDER_DETAIL_GATHERING_CONFIRM = "5";
    /**
     * 完成
     */
    public static String ORDER_DETAIL_FINISH = "6";
    /**
     * SOKET服务开启标志
     */
    public static String SOCKET_SERVICE_FLAG = "1";
    /**
     * 每页默认显示笔数
     */
    public static String tPage ="10";
    /**
     * 批量导入时页面显示条数
     */
    public static String importPageSize = GSSystemConfigurator.getParam("gs.import.Product.datasize");
    /**
     * 
     */
    public static String LEVEL_ONE = "1";
    /**
     * 
     */
    public static String LEVEL_TWO = "2";
    /**
     * 
     */
    public static String LEVEL_THREE = "3";
    /**
     * 应急采购订单待确认状态
     */
    public static String TEMP_ORDER_DETAIL_UNCOFIRM="1";
    /**
     * 应急采购订单直接确认状态
     */
    public static String TEMP_ORDER_DETAIL_DIRCONFIRM="2";
    /**
     * 应急采购订单调整确认状态
     */
    public static String TEMP_ORDER_DETAIL_ADJCONFIRM="3";
    /**
     * 出货单
     */
    public static String ORDER_CATEGORY_1 = "1";
    /**
     * 补单
     */
    public static String ORDER_CATEGORY_2 = "2";
    /**
     * 手动设定结算日期
     */
    public static String MANUAL_BALANCE_DATE = "2";
    /**
     * 自然月结算日期
     */
    public static String NATURE_BALANCE_DATE = "1";
    /**
     * 订货单位类型
     */
    public static String BALANCE_ORDERDEPT_TYPE = "1";
    /**
     * 供应商类型
     */
    public static String BALANCE_PROVIDER_TYPE ="2";
    /**
     * 付款类型
     */
    public static String PAYMENT_TYPE = "2";
    /**
     * 收款类型
     */
    public static String RECEIVE_TYPE = "1";
    /**
     * 未结算状态
     */
    public static String UNBALANCE_STATUS = "0";
    /**
     * 结算状态
     */
    public static String BALANCE_STATUS = "1";
    /**
     * 主合同
     */
    public static String MAIN_BARGAIN = "1";
    /**
     * 副合同
     */
    public static String SUBSIDIARY_BARGAIN = "2";
    
    /**
     * 结算单位-运营公司级别 
     */
    public static String BALANC_WORKCORP_LEVEL = "1";
    /**
     * 结算单位-修理厂级别
     */
    public static String BALANCE_FACTORY_LEVEL = "2";
    /**
     * 未完成
     */
    public static String UNPAY = "1";
    /**
     * 部分完成
     */
    public static String PARTPAY = "2";
    /**
     * 全部完成
     */
    public static String TOTALPAY = "3";
    
    /**
     * 菜单适用类型：适用运营公司
     */
    public static int TYPE_ORGA = 0;
    /**
     * 菜单适用类型：适用供应商
     */
    public static int TYPE_PROV = 1;
    /**
     * 结算信息包含压库明细
     * */
    public static String BALANCE_MSG="1";
    /***
     * 结算模式
     * */
    public static String BALANCE_MODE1="1";
    public static String BALANCE_MODE2="2";
    
    /**
     * 产品供应商分类
     */
    public static final String PRODUCT_TYPE1 = "1";
    public static final String PRODUCT_TYPE2 = "2";
    public static final String PRODUCT_TYPE3 = "3";
    public static final String PRODUCT_TYPE4 = "5";
    /**
     * 产品分类自定义管理，产品使用分类
     */
    public static final int PRODUCT_TYPE_MANAGER_USE = 1000;
    
    public static final int PRODUCT_TYPE_MANAGER_BID = 2000;
    
    public static final String PRODUCT_TYPE_MANAGER_NOTHING = "9999";
    
    public static final int PRODUCT_TYPE_MANAGER_ORTHER_BID = 99;//产品招标分类，其他分类99
    
    public static final int PRODUCT_TYPE_MANAGER_ORTHER_USE = 99;//产品使用分类，其他分类99
    /**
     * 提交到apep返回成功标识
     * */
    public static String APEP_RETURN_SIGN_SUCCESS="00";
    
    /**
     * 区域
     */
    public static final String PRODUCT_TYPE_1 = "1";
    public static final String PRODUCT_TYPE_2 = "2";
    public static final String PRODUCT_TYPE_3 = "3";
    public static final String PRODUCT_TYPE_4 = "4";
    public static final String PRODUCT_TYPE_5 = "5";
    public static final String PRODUCT_TYPE_6 = "6";
    public static final String PRODUCT_TYPE_7 = "7";
    public static final String PRODUCT_TYPE_8 = "9";
    public static final String PRODUCT_TYPE_9 = "10";
    public static final String PRODUCT_TYPE_10 = "11";
    public static final String PRODUCT_TYPE_OTHER = "99";
    
    /**
     * 补货申请状态
     * */
    public static String ORDER_SUPPLY_APPLY="0";//申请
    
    public static String ORDER_SUPPLY_AGREE="1";//通过
    
    public static String ORDER_SUPPLY_NOAGREE="2";//拒绝
    
    /**
     * 根据库存要货生成订单标识
     * **/
    public static String ORDER_NEED="N_";
    
    /**
     * 采购网发送补货申请标识
     * **/
    public static String ORDER_GIVE="G_";
    
    
    /***
     * 产品编码规则
     * **/
    public static int PRODUCT_CONCENTRICITY=Integer.parseInt(GSSystemConfigurator.getParam("gs.concentricity.length"));
    //ZT改
    /***
     * 产品编码规则2
     * **/
    public static int PRODUCT_CONCENTRICITY2=Integer.parseInt(GSSystemConfigurator.getParam("gs.concentricity.length2"));
    /***
     * 替换临时产品编码规则
     * **/
    public static int TEMPORARY_PRODUCT_CONCENTRICITY=Integer.parseInt(GSSystemConfigurator.getParam("gs.temporary.concentricity.length"));

    
    /***
     * 是否采用产品编码规则
     * **/
    public static int PRODUCT_IS_CONCENTRICITY=Integer.parseInt(GSSystemConfigurator.getParam("gs.is.concentricity"));

    /**
     * 产品检索规则
     * **/
    public static int MANUFACTURE_CODE_LENGTH=Integer.parseInt(GSSystemConfigurator.getParam("gs.SetManufactureCode.length"));
    /**
     * 开启湖南巴士计划价
     * **/
    public static String PLANPRICE=GSSystemConfigurator.getParam("gs.planprice");
    /**
     * 开启临时产品审核
     * **/
   public static String AUDITING=GSSystemConfigurator.getParam("gs.auditing");
   
   /**
    * 开启临时产品审核
    * **/
  public static String AUTO_AUDITING=GSSystemConfigurator.getParam("gs.auto.auditing");
   /**
    * 过滤不用临时产品审核的仓库
    * 
    */
   public static String[] WAREHOUSTS_NO_AUDITING = GSSystemConfigurator.getParams("gs.warehouse.not.auditing");
   
   /**
    * 是否中心库
    * **/
   public static String IS_CENTER_WAREHOUSE=GSSystemConfigurator.getParam("gs.center.warehouse");
   
   /**
    * 中心库的供应商代码
    * **/
   public static String CENTER_WAREHOUSE_PROVIDERCODE=GSSystemConfigurator.getParam("gs.center.warehouse.providerCode");
   
   public static final String SC_VALID = "1";
   public static final String SC_INVALID = "0";
   
   public static final int PROVIDER_TYPE_AUDIT = 20;
}
